package cn.codergege.demo.handler;

import cn.codergege.demo.domain.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created by codergege on 17-2-23.
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    public String index(Map map) {
        Person single = new Person();
        single.setName("赵波");
        single.setAge(30);
        map.put("singlePerson", single);
        System.out.println("----------------> " + single);
        return "index";
    }
}
